package com.frank.fresh_mall.service;

import com.frank.fresh_mall.model.pojo.Product;
import com.frank.fresh_mall.model.request.AddProductReq;
import com.frank.fresh_mall.model.request.ProductListReq;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

/**
 * 商品Service
 */
public interface ProductService {

    void add(AddProductReq addProductReq);

    void update(Product updateProduct);

    void delete(Integer id);

    void batchUpdateSellStatus(@Param("ids") Integer[] productIds,
                               @Param("sellStatus") Integer sellStatus);

    PageInfo listForAdmin(Integer pageNum, Integer pageSize);

    Product detail(Integer id);

    PageInfo list(ProductListReq productListReq);
}
